export default class SdkUtil {
    // 是否字节跳动
    public static get isBytedance(): boolean {
        return cc.sys.platform == cc.sys.BYTEDANCE_GAME
    }

    // 是否微信
    public static get isWechat(): boolean {
        return cc.sys.platform == cc.sys.WECHAT_GAME
    }

    // 是否 vivo
    public static get isVivo(): boolean {
        return cc.sys.platform == cc.sys.VIVO_GAME
    }

    // 是否 oppo
    public static get isOppo(): boolean {
        return cc.sys.platform == cc.sys.OPPO_GAME
    }


    public static millisecond(): number {
        return new Date().getTime()
    }

    public static unixtime(): number {
        return Math.floor(this.millisecond() / 1000)
    }
}
